package spring.scheduling;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Created by boot on 9/20/15.
 */
@Component
public class Quartz {
    @Scheduled(cron = "0,10,20,30,40,50 * * * * ?")

    //需要注意@Scheduled这个注解，它可配置多个属性：cron\fixedDelay\fixedRate
    public void test() {
        System.out.println("Time: " + System.currentTimeMillis());
    }
}

